package com.snowy.hidden.user.service;


import com.snowy.framework.common.base.vo.LoginUser;
import com.snowy.framework.common.resp.BaseResp;
import com.snowy.hidden.user.domain.dto.UserInfoDTO;
import com.snowy.hidden.user.domain.model.SysUser;
import com.snowy.hidden.user.domain.req.GetWechatPhoneReq;
import com.snowy.hidden.user.domain.req.WechatLoginReq;

import javax.servlet.http.HttpServletRequest;

public interface AuthService {


    /**
     * 登出
     */
   // void logout(LoginUser sysUser);

    /**
     * （用户登录，组织端）
     * @param phoneNumber
     * @param password
     * @return
     */
    UserInfoDTO loginPWDRole(String phoneNumber, String password);

    /**
     * 微信小程序登录
     * @param req
     * @return
     */
    //LoginUser appletLogin(WechatLoginReq req);


    /**
     * 微信登录
     * @param wechatLoginReq
     * @return
     */
    BaseResp loginByWechat(WechatLoginReq wechatLoginReq, HttpServletRequest request);


    /**
     * 获取用户手机号
     * @param getWechatPhoneReq
     * @param accessToken
     * @return
     */
    String getWechatPhone(GetWechatPhoneReq getWechatPhoneReq, String accessToken);
}
